package git.soulbgm.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author SoulBGM
 * @version 1.0
 * @date 2020/7/26 22:45
 */
@RestController
public class DemoController {

    @Value("${server.port}")
    private int port;

    @RequestMapping("echo/{text}")
    public String echo(@PathVariable String text) {
        return "端口" + port + " : " + text;
    }

}
